package com.kj.tms.common.bean.dto;

import java.io.Serializable;

public class BaseDto implements Serializable, Cloneable {
    private static final long serialVersionUID = -5316739260588809047L;

    public BaseDto() {
        super();
    }

    /**
     * 分页使用
     */
    private Integer pageNo = 1;
    private Integer pageSize = 10;
    private Integer startSize;
    private Integer endSize;
    private Integer counts;
    private String id; // id
    private String name;
    private String code;
    private String flag;


    public void setStartSize(Integer startSize) {
        this.startSize = startSize;
    }

    public void setEndSize(Integer endSize) {
        this.endSize = endSize;
    }

    public Integer getStartSize() {
        return startSize;
    }

    public Integer getEndSize() {
        return endSize;
    }

    /**
     * 分页导航
     */
    private Pager pager = new Pager();

    public Pager getPager() {
        pager.setPageNo(getPageNo());
        pager.setPageSize(getPageSize());
        return pager;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getCounts() {
        return counts;
    }

    public void setCounts(Integer counts) {
        this.counts = counts;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public void setPager(Pager pager) {
        this.pager = pager;
    }

}
